package com.dattplace.model;

import java.util.Date;


public class User {

	/**
	 * system id
	 */
	private String id;

	/**
	 * 用户id
	 */
	private String userId;

	/**
	 * 用户名称
	 */
	private String userName;

	/**
	 * 用户类型 0: app 注册用户 1：超级管理员 2：管理员
	 */
	private int userType;

	/**
	 * 用户密码
	 */
	private String password;

	/**
	 * 最后登录时间
	 */
	private Date lastLoginTime;

	/**
	 * 用户登录token
	 */
	private String accessToken;
	/**
	 * 手机号
	 */
	private String mobile;

	/**
	 * 1： Android 2：IOS
	 */
	private String isIos;

	/**
	 * 设备ID
	 */
	private String deveiceId;

	/**
	 * 昵称
	 */
	private String nickName;

	/**
     * 过期时间
     */
    private long expireTime;

    /**
     * 是否在线 0：不在线 1：在线
     */
    private boolean isOnline;

    /**
     * 创建时间
     */
    private Date createDate;
    
    /**
     * 用户多设备访问信息
     * key是 登录客户端类型
     * 1.web,2.android,3.ios,4.pc

     */
/*    private Map<Integer,UserDeviceAccess> deviceAccess;
*/    
    
    /**
     * 获取token 的时间
     */
    private Date tokenTime;
    
    /**
     * 用户头像URL
     */
    private String userPicUrl;
    
    /**
     * 性别 1：男  2：女
     */
    private int sex;
    
    /**
     * 生日
     */
    private String birthDate;
    
    /**
     * 账号状态 0：正常 1：停用
     */
    private int accountStatus;
    
    /**
     * 用户等级
     */
    private String level;
    
    
    
	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public int getAccountStatus() {
		return accountStatus;
	}

	public void setAccountStatus(int accountStatus) {
		this.accountStatus = accountStatus;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(String birthDate) {
		this.birthDate = birthDate;
	}

	public String getUserPicUrl() {
		return userPicUrl;
	}

	public void setUserPicUrl(String userPicUrl) {
		this.userPicUrl = userPicUrl;
	}

	public Date getTokenTime() {
		return tokenTime;
	}

	public void setTokenTime(Date tokenTime) {
		this.tokenTime = tokenTime;
	}
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public boolean isOnline() {
		return isOnline;
	}

	public void setOnline(boolean isOnline) {
		this.isOnline = isOnline;
	}

	public long getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(long expireTime) {
		this.expireTime = expireTime;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getIsIos() {
		return isIos;
	}

	public void setIsIos(String isIos) {
		this.isIos = isIos;
	}

	public String getDeveiceId() {
		return deveiceId;
	}

	public void setDeveiceId(String deveiceId) {
		this.deveiceId = deveiceId;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getUserType() {
		return userType;
	}

	public void setUserType(int userType) {
		this.userType = userType;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

}
